package com.wei.czz.common.vo.game;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.ObjectUtils;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2023-03-28 17:24:42
 * className: DeleteGameUserVo 删除游戏用户参数类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class DeleteGameUserVo extends BaseEntity {

    /**
     * 游戏主键
     */
    private Long gameId;
    /**
     * 游戏用户主键列表
     */
    private List<Long> idList;
    /**
     * 用户主键列表
     */
    private List<Long> userIdList;

    /**
     * 校验请求参数是否正确
     * @return true-校验拒绝 false-校验通过
     */
    public boolean isParamsFail() {
        return ObjectUtils.anyNull(gameId, idList, userIdList) || idList.isEmpty() || userIdList.isEmpty();
    }
}
